const routes = [
    {
      path: '/',
      name: 'home',
      component: () => import('../views/Home.vue'),
      children:[
        {
          path:'/shouye',
          name:'shouye',
          component:()=>import('../views/Shouye.vue')
        },
        {
          path:'/tuan',
          name:'tuan',
          component:()=>import('../views/One.vue')
        },
        {
          path:'/ding',
          name:'ding',
          component:()=>import('../views/Dingdan.vue')
        },
        {
          path:'/wude',
          name:'wude',
          component:()=>import('../views/Wudezong.vue')
        },
        {
          path:'/',
          redirect:'/shouye'
        },
        {
          path:'*',
          component:()=>import('../views/AboutView.vue')
        }
      ]
    },
    {
      path: '/index',
      name: 'index',
      component: () => import('../views/Deng-d.vue')
    },
    {
      path:'/',
      redirect:'/index'
    },
    {
      path:'*',
      component:()=>import('../views/AboutView.vue')
    }
]

export default routes;